package project1.service;

import project1.dao.UserDao;
import project1.dao.UserDaoIml;
import project1.model.User;

import java.util.List;

public class UserServiceImpl implements UserService {
    private UserDao userDao = new UserDaoIml();
    @Override
    public List<User> allUser() {
        return userDao.allUser();
    }

    @Override
    public void deleteUser(String id) {
        userDao.deleteUser(id);
    }

    @Override
    public List<User> searchUser(String word) {
        return userDao.searchUser(word);
    }
}
